#ifndef BALL_H_INCLUDED
#define BALL_H_INCLUDED

#include "btBulletDynamicsCommon.h"
#include "GameObject.h"
#include "EventPoller.h"

class Ball : public GameObject, public EventHandler
{
public:
	Ball();
	~Ball();
	Ball(const std::string& tex, float radius, float mass, float damping);
	void Draw();
	void Update();

	void ResetPosition();
	
	bool Load(File* const f);
	float GetRadius();

	const char* GetTypeName();
	virtual void OnKeyboardEvent(const SDL_KeyboardEvent& k);

	void BTCollided(GameObject* go, const btVector3& ang, const btVector3& lin);

private:
	float m_radius;
	bool m_onGround;
	btQuaternion m_quat;
	//bool m_isCurrent;
	//bool m_thrown;
	
};

#endif